package com.yzi.utilitys
{
	import flash.display.Bitmap;
	import flash.utils.ByteArray;

	public class EmbedUtility
	{
		public function EmbedUtility()
		{
			throw new Error("Static Class.");
		}
		
		static public function GetXML($classObject:Class): XML
		{
			var result:XML = XML(GetString($classObject));
			
			return result;
		}
		
		static public function GetString($classObject:Class): String
		{
			var byteArray:ByteArray = new $classObject() as ByteArray;
			var result:String = byteArray.readUTFBytes(byteArray.length);
			
			return result;
		}
		
		static public function GetBitmap($classObject:Class): Bitmap
		{
			var result:Bitmap = new $classObject as Bitmap;
			
			return result;
		}
	}
}